package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.member.enums.MemberTypeEnum;
import com.bestcem.xm.member.grpc.service.param.PageParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description 分页查询企业联系人请求参数
 * @date 2021/9/10
 */
@Getter
@Setter
@ToString
public class ListOrgMembersParams {
    @NotNull(message = "企业id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业id格式错误")
    private String orgId;

    @NotNull(message = "联系人类型不能为空")
    private MemberTypeEnum memberTypeEnum;

    @Valid
    @NotNull(message = "分页参数不能为空")
    private PageParam pageParam;
}
